package com.qiang.demo01;

import java.util.ArrayList;

public class Test07 {
    public static void main(String[] args) {
        ArrayList<String> array = new ArrayList<>();
        array.add("qwe");
        array.add("asd");
        array.add("zxc");
        array.add("tyu");
       /* array.remove(2);
        for (String s : array) {
            System.out.println(s);
        }
        array.removeIf((String str) -> {
            return "qwe"==str;
        });
        for (String s : array) {
            System.out.println(s);
        }*/
       /* array.clear();
        for (String s : array) {
            System.out.println(s);
        }
        int size = array.size();
        System.out.println(size);*/
        String s = array.get(2);
        System.out.println(s);
    }
}
